/**
 * 路由配置
 * @author xiaoqiang <465633678@qq.com>
 * @created 2018/11/24 23:50:43
 */
const Router = require('koa-router')
// 实例化Router
const router = new Router()
// 控制器
const index = require('../controller')
const asdfghjkl = require('../controller/asdfghjkl')

/**
 * 首页
 */
router.get('/', index)
/**
 * 调用post方法的路径时
 */
router.post('/asdfghjkl', asdfghjkl)

// 导出路由
module.exports = router